﻿using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TaiwuZD
{
    public class TwItemPower : TwObject
    {

        //public new int this[string key] => (int)base[key];

        //public new int this[int key] => (int)base[key];
        public override object Clone()
        {
            throw new NotImplementedException();
        }

        protected override string GetDefaultValue(string key)
        {
            if (GameAssets.TwItemPowers != null)
            {
                if (GameAssets.TwItemPowers.ContainsKey(Id))
                    if (GameAssets.TwItemPowers[Id].DataShop.ContainsKey(key))
                        return GameAssets.TwItemPowers[Id].DataShop[key];
            }

            return base.GetDefaultValue(key);
        }
    }
}
